import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common'
import { ApiOperation, ApiProperty, ApiTags } from '@nestjs/swagger'


@Controller()
@ApiTags('鉴权板块')
export class AuthController {
    // 登录
    @Post('/login')
    @ApiOperation({ summary: '登录' })
    async login() {
        return 'hello'
    }

    // 注册
    @Post('/register')
    @ApiOperation({ summary: '注册' })
    async register(@Body() body: any) {
        return 'hello'
    }

    // 发送短信
    @Post('/sendCode')
    @ApiOperation({ summary: '发送短信' })
    async sendCode(@Body() body: any) {
        return 'hello'
    }
}